home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / Constant.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.7 KB  |  65 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Constant.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONSTANT_H
  13. #define CONSTANT_H
  14.  
  15. // ----- OS Includes -----
  16.  
  17. #ifndef FWMNUITM_H
  18. #include "FWMnuItm.h"
  19. #endif
  20.  
  21. // ----- OpenDoc Includes -----
  22.  
  23. #ifndef FWODTYPS_H
  24. #include "FWODTyps.h"
  25. #endif
  26.  
  27. //========================================================================================
  28. //    Constants
  29. //========================================================================================
  30.  
  31. // ----- Tool -----
  32. const unsigned short kSelectTool     = 1;
  33. const unsigned short kLine             = 2; 
  34. const unsigned short kRectangle     = 3; 
  35. const unsigned short kOval             = 4; 
  36. const unsigned short kRoundRect     = 5;
  37. const unsigned short kText             = 6;
  38.  
  39. // ----- Corner -----
  40. const short kInTopLeftCorner = 1;
  41. const short kInBottomRightCorner = kInTopLeftCorner + 1;
  42. const short kInTopRightCorner = kInBottomRightCorner + 1;
  43. const short kInBottomLeftCorner = kInTopRightCorner + 1;
  44.  
  45. // ----- Shape rendering -----
  46. const unsigned short kFrameOnly = 1;
  47. const unsigned short kFillOnly = 2;
  48. const unsigned short kFillFrame = 3;
  49.  
  50. // ----- Semantic Terminology -----
  51.  
  52. const ODDescType kShapeClass = 'DrSh';
  53.  
  54. const ODDescType kShapeTypeProperty = 'DrTy';
  55.  
  56. const ODDescType kLineShapeType = 'Line';
  57. const ODDescType kRectShapeType = 'Rect';
  58. const ODDescType kOvalShapeType = 'Oval';
  59. const ODDescType kRRectShapeType = 'RRct';
  60. const ODDescType kTextShapeType = 'Text';
  61.  
  62. const FW_Fixed kRulerWidth = FW_IntToFixed(15);    
  63.  
  64. #endif
  65.